<?php

/**
 * 提现
 *
 * Created by PhpStorm.
 * User: evan
 * Date: 16/9/20
 * Time: 下午4:57
 */
class Cash extends MY_Api_Controller
{
    public function index()
    {
        $uid          = $this->uid;
        $card_id      = (int)$this->input->get_post('card_id');
        $amount       = (double)$this->input->get_post('amount');
        $pay_password = trim($this->input->get_post('pay_password'));


        $this->load->service('finance/service_finance_cash');
        $data = $this->service_finance_cash->index($uid, $card_id, $amount, $pay_password);


        $this->json_output($data['data'], $data['status']);
    }
}